package com;

import java.util.ArrayList;
import java.util.List;

/**
 * @Described：递归Constructer
 * @VM args:-Xss128k
 */
public class StackOverFlow2 {



    public static void main(String[] args) {
        /*for (int i = 0; i <50; i++) {
            new Thread(()->{
                for (int j = 0; j < 100; j++) {
                    List<String> list=new ArrayList<>();
                }
            }).start();
        }*/
        int count=0;
        try {
            int i=1/0;
        }catch (Exception e){
            count++;
            System.out.println("exception");
        }finally {
            if (count==1){
                int j=1/0;
            }
        }

    }
    public void test(){
        List<String>list=null;
        if (list==null){
            list=new ArrayList<>();
        }
        String s = list.toString();
        System.out.println(s);
    }
}
 class OneObject extends StackOverFlow2 {
}